package com.ktjiaoyu.service;

import com.ktjiaoyu.entity.Flower;
import com.ktjiaoyu.utils.Page;

public interface FlowerService {
    /**
     * 分页查询
     */
    public Page<Flower> findPage(Flower flower,Integer pageNo,Integer pageSize);
    /**
     * 新增
     * @param flower
     * @return
     */
    public boolean save(Flower flower);
    /**
     * 详情
     */
    public Flower findById(Integer id);
    /**
     * 修改
     * @param flower
     * @return
     */
    public boolean update(Flower flower);
    /**
     * 删除
     * @param id
     * @return
     */
    public boolean delete(Integer id);
    public Flower findByAccount(String flowerName) throws Exception;
}
